from django.contrib import admin

from registration.models import RegistrationProfile

from django.contrib.auth.models import User

class RegistrationAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'activation_key_expired')
    #search_fields = ('user__username', 'user__first_name')
    #search_fields = ('user__username','')
    search_fields = ('get_username','')

"""    
class UserAdmin(admin.ModelAdmin):
    list_display = ('__unicode__', 'activation_key_expired')
    search_fields = ('user__username', 'user__first_name')
    #search_fields = ('user__username','')    
"""
admin.site.register(RegistrationProfile, RegistrationAdmin)